From 0a0cb904596fe33647247a851c4cdce78d765cd4 Mon Sep 17 00:00:00 2001 From: robertl Date: Wed, 8 Oct 2008 01:24:57 +0000 Subject: [PATCH] Fix sign extension error in TPO that'd show up as a negative malloc if we had > 32,767 track points. --- tpo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tpo.c b/tpo.c index 7787e0c21..372ab86dd 100644 --- a/tpo.c +++ b/tpo.c @@ -424,7 +424,7 @@ int tpo_read_int() case 0xfe: // 16-bit value //printf("Found 16-bit value indicator: %x\n", val); - return( gbfgetint16(tpo_file_in) ); + return( gbfgetuint16(tpo_file_in) ); break; default: // 8-bit value -- 2.30.2